home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / hobby / cxmasc13.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-07-20  |  3KB  |  80 lines

  1. echo off
  2. cls
  3. if %1a == a: goto WHATDRIVE
  4. if %1b == b: goto WHATDRIVE
  5. if %1 == c: goto START
  6. if %1 == C: goto START
  7. if %1 == d: goto START
  8. if %1 == D: goto START
  9. if %1 == e: goto START
  10. if %1 == E: goto START
  11. if %1 == f: goto START
  12. if %1 == F: goto START 
  13. goto NOTDRIVE
  14. :START
  15. echo   ╔════════════════════════════════════════════════════════════════════════╗
  16. echo   ║                                                                        ║
  17. echo   ║               Computerized Christmas Cards, Installation               ║
  18. echo   ║                                                                        ║
  19. echo   ║   *  This will create a directory called %1\XMAS on your hard disk,    ║
  20. echo   ║      and will install the Christmas card files in that directory.      ║
  21. echo   ║                                                                        ║
  22. echo   ║   *  Once the program is installed you can run it by typing MAKECARD   ║
  23. echo   ║      and pressing ENTER.                                               ║
  24. echo   ║                                                                        ║
  25. echo   ║   *  If you do not want this program installed at this time, press     ║
  26. echo   ║      CTRL + C.                                                         ║
  27. echo   ║                                                                        ║
  28. echo   ╚════════════════════════════════════════════════════════════════════════╝
  29. echo 
  30. pause
  31. cls
  32. if exist %1\XMAS\*.* goto CHECK
  33. echo Making directory %1\XMAS . . .
  34. md %1\XMAS
  35. :CHECK
  36. if exist MAKECARD.EXE goto CONTINUE
  37. echo 
  38. echo Place the disk containing the Christmas card files in the active drive.
  39. echo 
  40. pause
  41. goto CHECK
  42. :CONTINUE
  43. echo 
  44. echo Copying Christmas card files . . .
  45. copy *.* %1\XMAS
  46. if not exist %1\XMAS\MAKECARD.EXE goto INSTALLERROR
  47. cd %1\XMAS
  48. echo 
  49. cls
  50. echo Computerized Christmas Cards is installed on your hard disk.  
  51. echo 
  52. echo To make a Christmas card type MAKECARD and press ENTER.
  53. echo 
  54. %1
  55. echo 
  56. goto DONE
  57. :WHATDRIVE
  58. cls
  59. echo Installation Error:  To install the Christmas cards on your hard
  60. echo disk, you must include the drive as part of the install command.
  61. echo For example, to install the Christmas cards on drive C, type 
  62. echo INSTALL C: and press ENTER.
  63. goto ERRORQUIT
  64. :NOTDRIVE
  65. cls
  66. echo Installation Error: The hard drive letter can be a letter from C to F,
  67. echo For example, INSTALL C: will install the Christmas cards on drive C.
  68. echo You must include a colon after the drive letter.
  69. goto ERRORQUIT
  70. :INSTALLERROR
  71. cls
  72. echo Installation Error: Do you have enough space on your hard disk?
  73. echo Did you give the proper hard drive letter?
  74. goto ERRORQUIT
  75. :ERRORQUIT
  76. echo 
  77. echo Computerized Christmas Cards was not installed correctly.
  78. echo 
  79. :DONE
  80.